package com.cskaoyan.market.controller;

import com.cskaoyan.market.service.MarketStatService;
import com.cskaoyan.market.util.ResponseUtil;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;
import java.util.Map;

/**
 * @Author: 付诚
 * @Date: 2024/5/20 14:07
 * @Description:
 */
@RestController
@RequestMapping("/admin/stat")

public class AdminStatController {
    @Autowired
    private MarketStatService marketStatService;

    @RequestMapping("user")
    private Object user() {

        Map<String, List<Object>> data = marketStatService.user();
        return ResponseUtil.ok(data);
    }
}
